package com.zjs.vueRole.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjs.vueMenu.entity.VueMenu;
import com.zjs.vueRole.entity.VueRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zjs
 * @since 2020-07-06
 */
public interface VueRoleMapper extends BaseMapper<VueRole> {


    List<VueMenu> getRoleMenuById(@Param("id") Long id);

    void saveRoleMenus(@Param("id")Long id,@Param("arr") String[] menus);

    void deleteByRoleId(@Param("id") Long id);
}
